package com.personnel_management.pojo;

import java.sql.Date;

public class Staff {
    private int id;
    private String name;
    private String phone;
    private Boolean sex;//0男1女
    private Date birthday;
    private String edu;//毕业院校
    private int depart_id;//部门编号
    private int position_id;//职位编号

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public int getDepart_id() {
        return depart_id;
    }

    public void setDepart_id(int depart_id) {
        this.depart_id = depart_id;
    }

    public int getPosition_id() {
        return position_id;
    }

    public void setPosition_id(int position_id) {
        this.position_id = position_id;
    }

    public Staff() {
    }

    public Staff(String name, String phone, boolean sex, Date birthday, String edu, int depart_id, int position_id) {
        this.name = name;
        this.phone = phone;
        this.sex = sex;
        this.birthday = birthday;
        this.edu = edu;
        this.depart_id = depart_id;
        this.position_id = position_id;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", edu='" + edu + '\'' +
                ", depart_id=" + depart_id +
                ", position_id=" + position_id +
                '}';
    }
}
